<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:th="http://www.thymeleaf.org">
    <body th:fragment="copyright">
        <div class="footer_main">
            © 2016 xxx
        </div>

    </body>
    <style type="text/css">
        .footer_main{
            background-color: red
        }
    </style>
</html>